home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Puzzle / MonsterMemory.swf / scripts / DefineButton2_71 / BUTTONCONDACTION on(release).as
Text File  |  2004-06-12  |  622b  |  25 lines

  1. on(release){
  2.    tellTarget("../")
  3.    {
  4.       trycount = "0";
  5.       GameCount = 0;
  6.       CountX = 0;
  7.       CountY = 0;
  8.       while(Number(CountX) < 4)
  9.       {
  10.          while(Number(CountY) < 4)
  11.          {
  12.             CurrentCount = Number(Number(CountX * 4) + Number(CountY)) + 1;
  13.             removeMovieClip("Card" add CurrentCount);
  14.             trace(CountY add "  " add CountX add " " add CurrentCount);
  15.             CountY = Number(CountY) + 1;
  16.          }
  17.          CountY = 0;
  18.          CountX = Number(CountX) + 1;
  19.       }
  20.       ClickCount = "0";
  21.       FirstClick = "";
  22.    }
  23.    gotoAndPlay(1);
  24. }
  25.